package com.event.management.frontend.mapper;

import com.event.management.frontend.domain.QuestionnaireTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 问卷模板Mapper接口
 */
@Mapper
public interface QuestionnaireTemplateMapper {
    
    /**
     * 根据ID查询问卷模板
     * @param id 模板ID
     * @return 问卷模板
     */
    @Select("SELECT * FROM questionnaire_templates WHERE id = #{id} AND is_deleted = 0")
    QuestionnaireTemplate selectById(@Param("id") Long id);
} 